home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / basics / mfc simpleplayer.win / mainfrm.cpp next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.8 KB  |  76 lines

  1. // MainFrm.cpp : implementation of the CMainFrame class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "SimplePlayerMFC.h"
  6. #include "SimplePlayerMFCDoc.h"
  7. #include "SimplePlayerMFCView.h"
  8.  
  9.  
  10. #include "MainFrm.h"
  11.  
  12. #ifdef _DEBUG
  13. #define new DEBUG_NEW
  14. #undef THIS_FILE
  15. static char THIS_FILE[] = __FILE__;
  16. #endif
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CMainFrame
  20.  
  21. IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
  22.  
  23. BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
  24.     //{{AFX_MSG_MAP(CMainFrame)
  25.         // NOTE - the ClassWizard will add and remove mapping macros here.
  26.         //    DO NOT EDIT what you see in these blocks of generated code !
  27.     //}}AFX_MSG_MAP
  28. END_MESSAGE_MAP()
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CMainFrame construction/destruction
  32.  
  33. CMainFrame::CMainFrame()
  34. {
  35.     // TODO: add member initialization code here
  36.     
  37. }
  38.  
  39. CMainFrame::~CMainFrame()
  40. {
  41. }
  42.  
  43. BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
  44. {
  45.     // TODO: Modify the Window class or styles here by modifying
  46.     //  the CREATESTRUCT cs
  47.     // Set the attributes for the Movie Window
  48.     cs.style ^= WS_THICKFRAME | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_VISIBLE;
  49.  
  50.     return CFrameWnd::PreCreateWindow(cs);
  51. }
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CMainFrame diagnostics
  55.  
  56. #ifdef _DEBUG
  57. void CMainFrame::AssertValid() const
  58. {
  59.     CFrameWnd::AssertValid();
  60. }
  61.  
  62. void CMainFrame::Dump(CDumpContext& dc) const
  63. {
  64.     CFrameWnd::Dump(dc);
  65. }
  66.  
  67. #endif //_DEBUG
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70. // CMainFrame message handlers
  71.  
  72. LRESULT CMainFrame::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
  73. {
  74.     return CFrameWnd::DefWindowProc(message, wParam, lParam);
  75. }
  76.